<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
		<h:form>
			<rich:panel>
			
				<f:facet name="header">
					<h:outputText value="#{resourceApp.crhis_titulo_lista}"/>
				</f:facet>
				
				<c:if test="${empty crhisListaBean.crhisLista}">
				<rich:panel>
					<div align="center">
					<h:graphicImage value="/img/info.gif" /><h:outputLabel
						value="#{resourceApp.crhis_sin_info}" />
					</div>
				</rich:panel>
				</c:if>
				
				<c:if test="${!empty crhisListaBean.crhisLista}"> 
					<rich:dataTable 
						onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
						onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
						cellpadding="0" cellspacing="0"
						width="100%" border="0" 
						value="#{crhisListaBean.crhisLista}" var="his">	
						<rich:column sortBy="#{his.hisfec}" headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crhis_hisfec}"/>
							</f:facet>
							<h:outputText value="#{his.hisfec_s}">
								<!-- <f:convertDateTime pattern=""/> -->
							</h:outputText>
						</rich:column>
						<rich:column sortBy="#{his.hisdes}" headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crhis_hisdes}"/>
							</f:facet>
							<h:outputText value="#{his.hisdes}"/>
						</rich:column>
						<rich:column sortBy="#{his.hisusu}" headerClass="encabezadoCol">
							<f:facet name="header">
								<h:outputText value="#{resourceApp.crhis_hisusu}"/>
							</f:facet>
							<h:outputText value="#{his.hisusu}"/>
						</rich:column>
					</rich:dataTable>
				</c:if>	
			</rich:panel>
		</h:form>
</ui:composition>
</html>
